package DBLayer;
import ModelLayer.*;
import java.util.ArrayList;

public interface IFDBProduct 
{
    public ArrayList<Product> getAllProducts(boolean retriveAssociation);
    
    public Product searchProductOnName(String attValue, boolean retriveAssociation);
    
    public Product findProduct(int productID, boolean retriveAssociation);
    
    public Product searchProductSup(int suId, boolean retriveAssociation);
    
    public Product searchProductType( String type, boolean retriveAssociation);
    
    public Product searchProductID(int productID, boolean retriveAssociation);
    
    public void insertProduct(Product pro);
    
    public void updateProduct(Product pro);
    
    public void updateProductStock(int productID, int newStock);
    
    public void deleteProduct(int productID);
    
    public int MaxID();

    public int Antal();
}